#include "scheduler/inverter_scheduler.h"
#include "../policy/behavior_tree/behavior_tree_inverter_policy.h"
#include "../policy/policy_factory.h"

namespace scheduler
{
InverterScheduler::InverterScheduler(const std::string &name)
    : AbstractScheduler(name)
{
    schedule_policy_ = policy::PolicyFactory<policy::BehaviorTreeInverterPolicy>::createPolicy(name);
}
bool InverterScheduler::appendTask(const task::AbstractTaskConstPtr &task)
{
    EASE_ERROR("inverter scheduler cannot add task");
    throw std::runtime_error("inverter scheduler cannot add task");
}
bool InverterScheduler::appendScheduler(const AbstractSchedulerConstPtr &scheduler)
{
    EASE_ERROR("inverter scheduler cannot add scheduler");
    throw std::runtime_error("inverter scheduler cannot add scheduler");
}
InverterScheduler::~InverterScheduler() = default;

}
